package lupos;

import org.w3c.dom.Element;

/** 
 * The role of this class is to parse the 'label'
 * elements of FrameNet 1.3 annotation files:
 * 
 *   label @name @ID (@start @end) (@itype)
 *   
 * The ID attribute is ignored. 
 */

public class Label {

	public String name;
	public String start = "";
	public String end = "";
	public String iType;
	
	public Label(Element e) {
		name = e.getAttribute("name");
		if (e.hasAttribute("start")) start = e.getAttribute("start");
		if (e.hasAttribute("end")) end = e.getAttribute("end");
		if (e.hasAttribute("itype")) iType = e.getAttribute("itype");
	}
	
}
